import Notify from './notify.vue'
import myWebSocket from "@/utils/ws";

export default {
  install(app, connection, opts = {}) {
    if (typeof connection === 'object') {
      opts = connection
      connection = ''
    }

    app.config.globalProperties.$socket = new myWebSocket({
      otp: {
        message: false,
        keyValue: 'sendInfo'
      }
    });
    // socket.createFn(opts.connection);
    // 注册消息通知组件
    app.component('LinNotify', Notify)
  },
}

